package com.songlanyun.modules.areafeature.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

import com.songlanyun.common.drive.RootEntity;
import com.songlanyun.common.enums.GoodsConstant;
import lombok.Data;

/**
 * 商品特征分区
 *
 * @author lubo
 * @email sunlightcs@gmail.com
 * @date 2022-07-23 10:23:51
 */
@Data
@TableName("yxt_goods_area_feature")
public class GoodsAreaFeatureEntity extends RootEntity<Long,GoodsAreaFeatureEntity> implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 *
	 */
	@TableId
	private Long id;
	/**
	 * 商品id
	 */
	private Long goodsId;
	/**
	 * 商品分区特征(0服务体系礼包,1新人福利区,2公益申领)
	 */
	private GoodsConstant.AreaFeature areaFeature;

	/**
	 * 购买服务礼包可以获得的区域
	 */
	private GoodsConstant.ServicePackageArea servicePackageArea;
	/**
	 * 顺序
	 */
	private Integer orderIndex;
	/**
	 * 创建时间
	 */
	@TableField(fill = FieldFill.INSERT)
	private Date createTime;

	@Override
	public Long getIdentity() {
		return getGoodsId();
	}
}
